Completed
Push — master ( 880c09...d1844c )
by
unknown
02:09
created

ities   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 14
rs 9.4285
nop 1
1
import {
2
  cmsData
3
} from '../../'
4
5
export default function insertDebugtoolUtilities(text){
6
  return text.replace(
7
    /<\/body>/,
8
      `<style>
9
        body [data-abe]{ transition: box-shadow 600ms ease-in-out; box-shadow: 0; }
10
        body .select-border{ border-color: #007CDE; box-shadow: 0 3px 13px #7CBAEF; }
11
        body img.display-attr:before { content: attr(alt); }
12
        body a.display-attr:before { content: attr(title); }
13
        body .display-attr:before { position: absolute; display: block; z-index: 555; font-size: 10px; background-color: rgba(255, 255, 255, 0.75); padding: 2px 5px; color: #5D5D5D; }
14
        .hidden-abe{ display: none!important; width: 0px !important; height: 0px!important; position: absolute; left: -10000px; top: -10000px; visibility: hidden;}
15
      </style>
16
    </body>`
17
  )
18
}